package com.akcome.apollo.domain;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;

/**
 * VIEW
 *
 * @author wn
 * @version $v: 1.0.0, $time:2017-12-26 08:49:00 Exp $
 */
@Entity
@Table(name = "v_found_blocks")
public class VFoundBlocks implements Serializable {

    /**  **/
    private Long id;
    
    private String cointype;

    /**  **/
    private Long puid;

    /**  **/
    private Long workerId;

    /**  **/
    private String workerFullName;

    /**  **/
    private Long jobId;

    /**  **/
    private Long height;

    /**  **/
    private Long isOrphaned;

    /**  **/
    private String hash;

    /**  **/
    private Long rewards;

    /**  **/
    private Long size;

    /**  **/
    private String prevHash;

    /**  **/
    private Long bits;

    /**  **/
    private Long version;

    /**  **/
    private Date createdAt;


    @Id
    @Column(name = "id", length = 11)
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    
    @Column(name = "cointype", length = 10)
    public String getCointype() {
		return cointype;
	}

	public void setCointype(String cointype) {
		this.cointype = cointype;
	}

	@Column(name = "puid", length = 11)
    public Long getPuid() {
        return puid;
    }

    public void setPuid(Long puid) {
        this.puid = puid;
    }

    @Column(name = "worker_id", length = 20)
    public Long getWorkerId() {
        return workerId;
    }

    public void setWorkerId(Long workerId) {
        this.workerId = workerId;
    }

    @Column(name = "worker_full_name", length = 50)
    public String getWorkerFullName() {
        return workerFullName;
    }

    public void setWorkerFullName(String workerFullName) {
        this.workerFullName = workerFullName;
    }

    @Column(name = "job_id", length = 20)
    public Long getJobId() {
        return jobId;
    }

    public void setJobId(Long jobId) {
        this.jobId = jobId;
    }

    @Column(name = "height", length = 11)
    public Long getHeight() {
        return height;
    }

    public void setHeight(Long height) {
        this.height = height;
    }
    @Column(name = "is_orphaned", length = 11)
    public Long getIsOrphaned() {
        return isOrphaned;
    }

    public void setIsOrphaned(Long isOrphaned) {
        this.isOrphaned = isOrphaned;
    }

    @Column(name = "hash", length = 64)
    public String getHash() {
        return hash;
    }

    public void setHash(String hash) {
        this.hash = hash;
    }

    @Column(name = "rewards", length = 20)
    public Long getRewards() {
        return rewards;
    }

    public void setRewards(Long rewards) {
        this.rewards = rewards;
    }

    @Column(name = "size", length = 11)
    public Long getSize() {
        return size;
    }

    public void setSize(Long size) {
        this.size = size;
    }

    @Column(name = "prev_hash", length = 64)
    public String getPrevHash() {
        return prevHash;
    }

    public void setPrevHash(String prevHash) {
        this.prevHash = prevHash;
    }

    @Column(name = "bits", length = 10)
    public Long getBits() {
        return bits;
    }

    public void setBits(Long bits) {
        this.bits = bits;
    }

    @Column(name = "version", length = 11)
    public Long getVersion() {
        return version;
    }

    public void setVersion(Long version) {
        this.version = version;
    }

    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "created_at")
    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

}
